package com.dailyblue.java.cloud.service;

import com.dailyblue.java.cloud.service.impl.Consumer8002FallbackService;
import com.dailyblue.java.cloud.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "demo",fallback = Consumer8002FallbackService.class)
public interface Consumer8002Service {
    @GetMapping(value = "/demo")
    JsonResult a();

    @GetMapping("/demo/{name}")
    JsonResult b(@PathVariable("name") String name);
}
